package com.ruoyi.back.service.impl;

import java.util.List;

import com.ruoyi.back.domain.OfflineRegistration;
import com.ruoyi.back.mapper.OfflineRegistrationMapper;
import com.ruoyi.back.service.IOfflineRegistrationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 线下报名人信息Service业务层处理
 * 
 * @author luguanqing
 * @date 2021-04-13
 */
@Service
public class OfflineRegistrationServiceImpl implements IOfflineRegistrationService
{
    @Autowired
    private OfflineRegistrationMapper offlineRegistrationMapper;

    /**
     * 查询线下报名人信息
     * 
     * @param id 线下报名人信息ID
     * @return 线下报名人信息
     */
    @Override
    public OfflineRegistration selectOfflineRegistrationById(String id)
    {
        return offlineRegistrationMapper.selectOfflineRegistrationById(id);
    }

    /**
     * 查询线下报名人信息列表
     * 
     * @param offlineRegistration 线下报名人信息
     * @return 线下报名人信息
     */
    @Override
    public List<OfflineRegistration> selectOfflineRegistrationList(OfflineRegistration offlineRegistration)
    {
        return offlineRegistrationMapper.selectOfflineRegistrationList(offlineRegistration);
    }

    /**
     * 新增线下报名人信息
     * 
     * @param offlineRegistration 线下报名人信息
     * @return 结果
     */
    @Override
    public int insertOfflineRegistration(OfflineRegistration offlineRegistration)
    {
        return offlineRegistrationMapper.insertOfflineRegistration(offlineRegistration);
    }

    /**
     * 修改线下报名人信息
     * 
     * @param offlineRegistration 线下报名人信息
     * @return 结果
     */
    @Override
    public int updateOfflineRegistration(OfflineRegistration offlineRegistration)
    {
        return offlineRegistrationMapper.updateOfflineRegistration(offlineRegistration);
    }

    /**
     * 批量删除线下报名人信息
     * 
     * @param ids 需要删除的线下报名人信息ID
     * @return 结果
     */
    @Override
    public int deleteOfflineRegistrationByIds(String[] ids)
    {
        return offlineRegistrationMapper.deleteOfflineRegistrationByIds(ids);
    }

    /**
     * 删除线下报名人信息信息
     * 
     * @param id 线下报名人信息ID
     * @return 结果
     */
    @Override
    public int deleteOfflineRegistrationById(String id)
    {
        return offlineRegistrationMapper.deleteOfflineRegistrationById(id);
    }
}
